package com.ambimmort.shj.action.device_deploy;

import com.ambimmort.shj.service.device.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by zyt on 2015/7/30.
 */



@Controller("/action/device_deploy/edit.do")
public class EditDevDep {
    @Autowired

    private DeviceService deviceService;

    @RequestMapping("/action/device_deploy/edit.do")
    @ResponseBody
    public String action_device(HttpServletRequest request, @RequestParam("id") String id_str,@RequestParam("ip")String ip,@RequestParam("deploySiteName") String deploySiteName, @RequestParam("belongTo")String belongTo,@RequestParam("deviceNo") String deviceNo) {
        return deviceService.editDevDepDevice( id_str,  ip,  deploySiteName,  belongTo,  deviceNo);
    }
}
